package org.locker.domain.vo;

import org.locker.domain.DeviceOperateLog;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.locker.common.excel.annotation.ExcelDictFormat;
import org.locker.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 用户操作记录视图对象 lk_device_operate_log
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = DeviceOperateLog.class)
public class DeviceOperateLogVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 操作ID
     */
    @ExcelProperty(value = "操作ID")
    private Long userOperateId;



    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 场地ID
     */
    @ExcelProperty(value = "场地ID")
    private Long positionId;

    /**
     * 设备ID
     */
    @ExcelProperty(value = "设备ID")
    private Long deviceId;
    /**
     * 格子ID
     */
    @ExcelProperty(value = "格子ID")
    private Long deviceGridId;

    /**
     * 格子名称
     */
    private String deviceGridName;

    /**
     * 订单编号
     */
    @ExcelProperty(value = "订单编号")
    private String orderNo;

    /**
     * 格子状态：open 开锁,close 关闭
     */
    @ExcelProperty(value = "格子状态：open 开锁,close 关闭", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "operate_status")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 操作时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;



}
